package com.art.museumbackend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Role {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String roleName;    // 角色名称
    private String roleDesc;    // 角色描述
    private String roleType;    // 角色类型：SYSTEM/SECURITY/AUDIT

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
} 